working with grid functions
To create a window that contains a grid you designed, your program calls its grid
function, passing it a CreateWindow message and other pertinent arguments. The grid
function creates a window containing one of your grids and returns its grid number.
Design ( @grid, #CreateWindow, xDisp, yDisp, width, height, 0, 0 )
To request notification of important events from the grid, your program sends a
SetCallback message:
XuiSendMessage ( grid, #SetCallback, grid, &DesignCode(), -1,-1,0,0 )
To control the window containing a grid, your program sends messages to the grid . For
example, to control a window:
XuiSendMessage ( grid, #DisplayWindow, 0, 0, 0, 0, 0, 0 )
XuiSendMessage ( grid, #HideWindow, 0, 0, 0, 0, 0, 0 )
XuiSendMessage ( grid, #IconifyWindow, 0, 0, 0, 0, 0, 0 )
There are literally dozens of messages your program can send to grid and its kids to get
their current properties and states, for example:
XuiSendMessage ( grid, #GetBorder, @b, @bu, @bd, 0, kid, @width )
XuiSendMessage ( grid, #GetColor, @back, @draw, @hi, @lo, kid, 0 )
XuiSendMessage ( grid, #GetTextString, 0, 0, 0, 0, kid, @text$ )
XuiSendMessage ( grid, #GetTextArray, 0, 0, 0, 0, kid, @text$[] )
There are also dozens of messages your program can send to grid and its kids to set new
properties and states, for example:
XuiSendMessage ( grid, #SetBorder, b, bu, bd, -1, kid, 0 )
XuiSendMessage ( grid, #SetColor, back, draw, -1, -1, kid, 0 )
XuiSendMessage ( grid, #SetTextString, 0, 0, 0, 0, kid, @text$ )
XuiSendMessage ( grid, #SetTextArray, 0, 0, 0, 0, kid, @text$[] )
The grid functions GuiDesigner creates from your design windows are your functions. You
can view them, learn from them, even modify them, though you probably won't since there's
rarely any need.